package class202205.demo15.demo11.linkedtistdemo;

public class Test {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addLast(12);
        myLinkedList.addLast(23);
        myLinkedList.addLast(34);
        myLinkedList.addLast(45);
        myLinkedList.disPlay();
    }
    public static void main1(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addLast(12);
        myLinkedList.addLast(12);
        myLinkedList.addLast(12);
        myLinkedList.addLast(12);
        myLinkedList.display();
        System.out.println("==========");
        //myLinkedList.addIndex(0,5);
        //myLinkedList.addIndex(4,9);
        myLinkedList.clear();
        myLinkedList.display();
        /*System.out.println(myLinkedList.contains(4));*/
    }
}